import 'package:flutter/services.dart';

class ClipboardUtil {
  //复制内容
  static setData(String? data) {
    if (data != null && data != '') {
      Clipboard.setData(ClipboardData(text: data));
    }
  }


  //获取内容
  static Future getData() {
    return Clipboard.getData(Clipboard.kTextPlain);
  }
}